package cn.jhz.learn.blog.vo;

import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Setter
@Getter
public abstract class PageView {
    @NotNull(message = "页码为null!")
    @Min(value = 0, message = "无效页码!")
    private Short page_num;

    @NotNull(message = "页面尺寸为null!")
    @Min(value = 1, message = "无效页面尺寸!")
    private Short page_size;
}
